<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
 
<h:head>
 
</h:head>
<h:body>
  <f:facet name="last">
	<h:outputStylesheet library="mytheme" name="css/style.css" />
  </f:facet>
 
  <h1>Login</h1>
 
  <div style="width: 400px">
	<h:form id="login">
 
 
 <p:panel id="login" header="Login">

 <h:outputText value="Usuario" />
<p:inputText id="usuario" value ="#{usuarioManaged.usuario.nombre}" required="true" label="usuario" size="40" />
 <h:outputText value="Password" />
<p:inputText id="password" value="#{usuarioManaged.usuario.password}"  required="true" label="password" size="40" />   

 

 
	<p:commandButton value="Validar" style="margin:20px"
		action="#{usuarioManaged.validarLogin()}" ajax="false" />
 
   
   </p:panel>
   </h:form>
  </div>
 
</h:body>
</html>